portableSql

Round Portable SQL Function

Syntax

Round as N (Number as N, DecimalPlaces as N)

Arguments

NumberNumeric

A numeric field or value.

DecimalPlacesNumeric

The number of decimal places to round to. A value greater than or equal to zero.

Returns

resultNumeric

Returns the value rounded to the nearest decimal place.

Description

Rounds off a number to a specified number of decimal places.

Discussion

The Round function rounds off a number to a specified number of decimal places. See also NativeRound and Truncate.

Round() function executed on the Northwind Access database
SELECT FIRST 1 Round(12.3) AS EXPR1, ROUND(-4.6) AS EXPR2 FROM Products
 = 12|-5